package org.example.yiyu.service;

import org.example.yiyu.model.Diary;
import org.example.yiyu.model.DiaryQuery;

import java.util.List;

public interface DiaryService {
    //增加日记
    public Long addDiary(Diary diary);
    //修改日记
    public void removeDiary(Long id);
    public void modifyDiary(Diary diary);
    public Diary getDiary(Long id);

    public List<Diary> searchDiaries(DiaryQuery query);
}
